package com.com.day05;

import javax.swing.*;


public class BallJFrame extends JFrame {
   //属性：画板
    BallJPanel panel;
   // public job_Music music;
    //通过无参构造添加画板

    public BallJFrame(){


        panel=new BallJPanel();
        this.add(panel);
showJF();
    }
    //展示窗口
    public void showJF(){
        this.setSize(800,1000);
        this.setVisible(true);
        this.setTitle("雷电游戏");
        this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);


        //启动线程
        panel.startRun();
    }

}
